package com.maycur.ctrip.util;

import java.math.BigDecimal;

/**
 * Created by JoeyXin on 6/28/16.
 */
public class Constant {
    public static final String TICKET_URL = "https://www.corporatetravel.ctrip.com/SwitchAPI/Order/Ticket";
    public static final String SEARCH_ORDER_URL = "https://www.corporatetravel.ctrip.com/switchapi/Order/SearchOrder";

    public static final String PARAM_APP_KEY = "appKey";
    public static final String PARAM_APP_SECURITY = "appSecurity";
    public static final String ENT_TOKEN_KEY_IN_REDIS = "CTRIP_SERVICE_ENT_ACCESS_TOKEN";
    public static final String SIMPLIFIED_USER_IN_REDIS = "CTRIP_SERVICE_USER_";
    public static final int ENT_ACCESS_TOKEN_EXPIRED_SECONDS = 7100;//SECONDS
    public static final int SIMPLIFIED_USER_EXPIRED_MINUTES = 30; //MINUTES

    public static final String DELIMITER_COMMA = ",";
    public static final String DATE_FORMAT = "yyyy-MM-dd";
    public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";

    public static final String HOTEL_CLIENT = "H";
    public static final String FLIGHT_CLIENT = "F";
    public static final String TRAIN_CLIENT = "T";

    public static final String DEFAULT_CTRIP_CURRENCY = "CNY";
    public static final String DEFAULT_ACCOMMODATION_FEE_TYPE = "2001_01";
    public static final String DEFAULT_AIRFARE_FEE_TYPE = "2002_01";
    public static final String DEFAULT_TRAIN_FEE_TYPE = "2002_03";
    public static final String DEFAULT_FEE_STATUS = "OPEN";
    public static final BigDecimal DEFAULT_EXCHANGE_RATE = new BigDecimal(1);
    public static final Integer DEFAULT_FEE_KIND = 0;
    public static final String DEFAULT_CONSUMPTION_PLATFORM = "携程";

}
